<?php
class Oh_Controller
{
    protected $_http;
    protected $_view;

    public function __construct()
    {
        $this->_http = Oh_Http::getInstance();
        $this->_view = Oh_View::getInstance();  
    }

    public function indexAction()
    {
        
    }

    protected function preDispatch()
    {
        
    }

    public function dispatch($actionName)
    {
        $this->preDispatch();
        $this->$actionName();
       	$this->postDispatch();
    }

    protected function postDispatch()
    {
        $this->_view->render();
    }
}